<!-- Copyright (c) 2019-2020 十三 all rights reserved. -->
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<header th:replace="admin/header::header-fragment">
</header>
<style>
    .ui-jqgrid tr.jqgrow td {
        white-space: normal !important;
        height: auto;
        vertical-align: text-top;
        padding-top: 2px;
    }

    a {
        color: #1baeae;
        text-decoration: none;
        background-color: transparent;
        -webkit-text-decoration-skip: objects;
    }

    a:hover {
        color: white;
        background-color: #1baeae;
    }
</style>
<body class="hold-transition sidebar-mini">
<div class="wrapper">
    <!-- 引入页面头header-fragment -->
    <div th:replace="admin/header::header-nav"></div>
    <!-- 引入工具栏sidebar-fragment -->
    <div th:replace="admin/sidebar::sidebar-fragment(${path})"></div>
    <!-- Content Wrapper. Contains 图标content -->
    <div class="content-wrapper">
        <!-- Content Header (图标header) -->
        <div class="content-header">
            <div class="container-fluid">
            </div><!-- /.container-fluid -->
        </div>
        <!-- Main content -->
        <div class="content">
            <div class="container-fluid">
                <div class="card card-primary card-outline">
                    <div class="card-header">
                        <h3 class="card-title"><span th:text="${id}"> </span>号影厅管理</h3>
                        <input type="hidden" id="hallId" th:value="${id}">
                    </div> <!-- /.card-body -->
                    <div class="card-body">

                        <div class="grid-btn">
                            <button class="btn btn-info" onclick="HallTime1()"><i
                                    class="fa fa-pencil-square-o"></i>&nbsp;<span id="one" th:text="${one}"> </span>
                            </button>
                            <button class="btn btn-info" onclick="HallTime2()"><i
                                    class="fa fa-pencil-square-o"></i>&nbsp;<span id="two" th:text="${two}"> </span>
                            </button>
                            <button class="btn btn-info" onclick="HallTime3()"><i
                                    class="fa fa-pencil-square-o"></i>&nbsp;<span id="three" th:text="${three}"> </span>
                            </button>
                            <button class="btn btn-info" onclick="HallTime4()"><i
                                    class="fa fa-pencil-square-o"></i>&nbsp;<span id="four" th:text="${four}"> </span>
                            </button>
                            <button class="btn btn-info" onclick="HallTime5()"><i
                                    class="fa fa-pencil-square-o"></i>&nbsp;<span id="five" th:text="${five}"> </span>
                            </button>
                        </div>

                        <div class="grid-btn">
                            <button class="btn btn-info" onclick="addHall()"><i
                                    class="fa fa-plus"></i>&nbsp;添加电影档期
                            </button>
                            <button class="btn btn-info" onclick="editHall()"><i
                                    class="fa fa-pencil-square-o"></i>&nbsp;修改电影档期
                            </button>
                            <button class="btn btn-danger" onclick="deleteHall()"><i
                                    class="fa fa-trash-o"></i>&nbsp;删除电影档期
                            </button>
                            <button class="btn btn-info" onclick="hallBack()"><i
                                    class="fa fa-backward"></i>&nbsp;返回
                            </button>
                        </div>

                        <table id="jqGrid" class="table table-bordered">

                        </table>
                        <!--                        js设置的翻页用的导航栏-->
                        <div id="jqGridPager"></div>
                    </div><!-- /.card-body -->
                </div>
            </div><!-- /.container-fluid -->
        </div>
        <!-- /.content -->
        <div class="content">
            <!-- 模态框（Modal） -->
            <div class="modal fade" id="categoryModal" tabindex="-1" role="dialog" aria-labelledby="categoryModalLabel">
                <div class="modal-dialog" role="document">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                                    aria-hidden="true">&times;</span></button>
                            <h6 class="modal-title" id="categoryModalLabel">Modal</h6>
                        </div>
                        <div class="modal-body">
                            <form id="categoryForm">
                                <div class="form-group">
                                    <div class="alert alert-danger" id="edit-error-msg" style="display: none;">
                                        错误信息展示栏。
                                    </div>
                                </div>
                                <input type="hidden" id="nowtime" th:value="${one}">
                                <input type="hidden"  id="hallId" name="hallId" th:value="${id}">
                                <div class="form-group">
                                    <label class="control-label">电影名称:</label>
                                    <input type="text" class="form-control col-sm-6" id="filmId" name="filmId"
                                           placeholder="*请输入电影ID(必填)"
                                           th:value="${schedule!=null and schedule.filmId!=null }?${schedule.filmId}: ''"
                                           required="true">&nbsp;
                                </div>
                                <div class="form-group">
                                    <label class="control-label">开始日期:</label>
                                    <input type="datetime-local" step="01" class="form-control col-sm-6" id="showDate" name="showDate"
                                           placeholder="*上映日期"
                                           th:value="${schedule!=null and schedule.showDate!=null }?${schedule.showDate}: ''"
                                           required="true">
                                </div>
                                <div class="form-group">
                                    <label  class="control-label">结束日期:</label>
                                    <input type="datetime-local" step="01" class="form-control col-sm-6" id="showTime" name="showTime"
                                           placeholder="*上映日期"
                                           th:value="${schedule!=null and schedule.showTime!=null }?${schedule.showTime}: ''"
                                           required="true">
                                </div>
                            </form>
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                            <button type="button" class="btn btn-primary" id="saveButton">确认</button>
                        </div>
                    </div>
                </div>
            </div>
            <!-- /.modal -->
        </div>
    </div>
    <!-- /.content-wrapper -->
    <!-- 引入页脚footer-fragment -->
    <div th:replace="admin/footer::footer-fragment"></div>


</div>
<!-- jQuery -->
<script th:src="@{/admin/plugins/jquery/jquery.min.js}"></script>
<!-- Bootstrap 4 -->
<script th:src="@{/admin/plugins/bootstrap/js/bootstrap.bundle.min.js}"></script>
<!-- AdminLTE App -->
<script th:src="@{/admin/dist/js/adminlte.min.js}"></script>
<!-- jqgrid -->
<script th:src="@{/admin/plugins/jqgrid-5.5.2/jquery.jqGrid.min.js}"></script>
<script th:src="@{/admin/plugins/jqgrid-5.5.2/grid.locale-cn.js}"></script>
<!-- sweetalert -->
<script th:src="@{/admin/plugins/sweetalert/sweetalert.min.js}"></script>
<script th:src="@{/admin/dist/js/public.js}"></script>
<script th:src="@{/admin/dist/js/film_hall_info.js}"></script>
</body>
</html>
